﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TradingAppDal
{
    public class TradingAppSettings
    {
        public static int PoolInterval
        {
            get
            {
                if (PoolIntervalInSecs < 0)
                {
                    return DefaultIntValue * 1000;
                }
                return PoolIntervalInSecs * 1000;
            }
        }
        public static int PoolIntervalInSecs = 5;
        public static string DBConnectionStr = "";
        public static int MaxThreadCount = 5;
        public const int DefaultIntValue = 5 ;
        public static string DefaultReport = "";
        public const string USER_ATTRIBUTE_STR = "UserName";
        public const string CONN_ATTRIBUTE_STR = "DBConnectionString";
        public const string TIMEOUT_ATTRIBUTE_STR = "DBPoolInterval";
        public const string MAXTHREAD_ATTRIBUTE_STR = "MaxThreads";
        public const string DEFAULTREPORT_ATTRIBUTE_STR = "DefaultReport";
        public const string REPORT_SCHEMA_STR = "vw_Report_";
        
    }
}
